#include<iostream>
#include<iomanip>
using namespace std;
float allocate(float t, int n)
{
    return (t / (float)n);
}
int main()
{
    float t; int n;
    cin >> t >> n;
    cout << fixed << setprecision(3) << allocate(t, n) << endl;
    cout << n * 2 << endl;
    return 0;
}